package chattle.client;

import java.util.List;

import chattle.shared.ChatMessage;
import chattle.shared.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("chat")
public interface ChatService extends RemoteService {
	ChatMessage send(String receiverId, String text);
	List<User> whosOnline();
	List<ChatMessage> poll();
}
